package com.bonc.modules.survey.service.impl;


import com.bonc.datasource.annotation.DataSource;
import com.bonc.modules.survey.Dao.SurveyItemDao;
import com.bonc.modules.survey.service.SurveyItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@DataSource("gbasedata")
@Service("surveyItemService")
public class SurveyItemServiceImpl implements SurveyItemService {

    @Autowired
    private SurveyItemDao surveyItemDao;

    @Override
    public List<String> getHeaders(Map<String, Object> param) {
        return this.surveyItemDao.getHeaders(param);
    }

    @Override
    public List<Map<String, Object>> querySurveyList(Map<String, Object> param) {
        return this.surveyItemDao.querySurveyList(param);
    }

    @Override
    public List<Map<String, String>> queryRegionGbase(Map<String, Object> param) {
        return this.surveyItemDao.queryRegionGbase(param);
    }
}
